<?php defined('_JEXEC') or die('Restricted access'); ?>

<form action="index.php" method="post" name="accountForm" id="accountForm">
<div class="admintable">
	<?php
	if( $this->obligation->ALLSUM == 0){
		?>
		<div class="message">
		<?
		echo JText::_( 'ZERO_OBLIGATION' );
		?>
		</div>
		<?
	}
	else {
	?>
    <fieldset class="accountform">
        <legend><?php echo JText::_( 'Details' ); ?></legend>
        <table class="accounttable">
        <tr>
        	<td width="100" align="center" class="key">
                <label for="abonnum">
                    <?php echo JText::_( 'ABONNUM' ); ?>
                </label>
            </td>
            <td width="100" align="center" class="key">
                <label for="name">
                    <?php echo JText::_( 'NAME' ); ?>
                </label>
            </td>
            <td width="100" align="center" class="key">
                <label for="allsum">
                    <?php echo JText::_( 'ALLSUM' ); ?>
                </label>
            </td>
            <td width="100" align="center" class="key">
                <label for="month_year">
                    <?php echo JText::_( 'MONTH' ).'/'.JText::_( 'YEAR' ); ?>
                </label>
            </td>
            <td width="100" align="center" class="key">
                <label for="sum">
                    <?php echo JText::_( 'CURSUM' ); ?>
                </label>
            </td>
        </tr>
        <tr>
				<td width="100" align="left" class="key">
				<label for="abonnum">
					<?php echo $this->obligation->ANUM; ?>
				</label>
			</td>
			<td width="100" align="left" class="key">
				<label for="name">
					<?php echo $this->obligation->NAME; ?>
				</label>
			</td>
			<td width="100" align="center" class="key">
				<label for="allsum">
					<?php echo number_format($this->obligation->ALLSUM, 2); ?>
				</label>
			</td>
			<td width="100" align="center" class="key">
				<label for="month_year">
					<?php echo $this->obligation->MONTH.'/'.$this->obligation->YEAR; ?>
				</label>
			</td>
			<td width="100" align="center" class="key">
				<label for="sum">
					<?php echo number_format($this->obligation->SUM, 2); ?>
				</label>
			</td>
		</tr>
    </table>
    </fieldset>
    <?
	}
	?>
</div>
</form>
<br/><br/>